import "dotenv/config";
import inquirer from "inquirer";

import { questions } from "./questions/postThoughts";
import { postThoughts } from "./utils/postThoughts";

inquirer.prompt(questions).then(async (answers) => {
  const thoughtIds: any[] = answers.thoughts
  await Promise.all(thoughtIds.map(id => postThoughts(id)))
});
